<!-- $Id: msg_list.htm 15616 2009-02-18 05:16:22Z sunxiaodong $ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 会员留言 </title>
<base href="__STATIC__/admin/" />
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />

<style>
  .panel-icloud .panel-right iframe {
    height: 300px;
    margin-top: 15px;
  }
  .panel-hint{
    top: 3%;
  }
.pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}  
.pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}  
.pagination .active{background-color: #46A3FF;color: #fff;}  
.pagination .disabled{color:#aaa;}
</style>


</head>
<body>
<h1>
  
<span class="action-span1"><a href="index.php?act=main">ECSHOP 管理中心</a> </span><span id="search_id" class="action-span1"> &nbsp;&nbsp;&nbsp;&nbsp; 会员留言 </span>
<div style="clear:both"></div>
</h1> 
 
</div>
<form method="POST" action="user_msg.php?act=batch_drop" name="listForm" onsubmit="return confirm_bath()">
<!-- start article list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th><a href="javascript:listTable.sort('msg_id'); ">ID</a></th>
    <th><a href="javascript:listTable.sort('user_name'); ">用户名</a></th>
    <th><a href="javascript:listTable.sort('msg_title'); ">留言标题</a></th>
    <th><a href="javascript:listTable.sort('msg_type'); ">类型</a></th>
    <th><a href="javascript:listTable.sort('msg_time'); ">留言时间</a></th>
    <th><a href="javascript:listTable.sort('msg_status'); ">状态</a></th>
    <th><a href="javascript:listTable.sort('reply'); ">回复</a></th>
    <th>操作</th>
  </tr>
    {volist name="member_leav_message" id="vo"}
		 <tr>
      <td align="center">{$vo.msg_id}</td>
	    <td align="center">{$vo.user_name}</td>
	    <td align="center">{$vo.msg_content}</td>
	    <td align="center">求购</a></td>
	    <td align="center"  nowrap="nowrap">2009-05-12 13:46:37</td>
	        <td align="center">
                {if condition="$vo.msg_status eq '1'"}
                <span id="{$vo.msg_id}" name="{$vo.msg_status}" d="d"><b>显示</b></span>
                {else /} 
                <span id="{$vo.msg_id}" name="{$vo.msg_status}" d="d"><b>禁止</b></span>
                {/if}
          </td>
	        <td align="center">
           {if condition="$vo.order_id eq '1'"}
                <span id="{$vo.msg_id}" name="{$vo.order_id}" c="l"><b>回复</b></span>
                {else /} 
                <span id="{$vo.msg_id}" name="{$vo.order_id}" c="l"><b>未回复</b></span>
                {/if} 
          </td>
	    <td align="center">
	      <a href="{:url('Admin/Member/select_xq')}?msg_id={$vo.msg_id}" title="查看详情">
	        <img src="images/icon_view.gif" border="0" height="16" width="16" />
	      </a>
	      <a href="{:url('Admin/Member/select_xq_del')}?msg_id={$vo.msg_id}" onclick="listTable.remove(1, '您确认要删除这条记录吗?')"  title="移除">
	        <img src="images/icon_drop.gif" border="0" height="16" width="16">
	      </a>
	    </td>
	  </tr>
	{/volist}
  </table>
<table id="page-table" cellspacing="0">
<div>
   {$page}
</div>
</table>
</div>
<!-- end article list -->
</form>



</body>
<script src="jquery.js"></script>
<script>
    $("span[d='d']").click(function(){
        var obj=$(this);
        var msg_id=obj.attr("id");
        var msg_status=obj.attr("name");
        $.ajax({
          url:"{:url('Admin/Member/member_leav_json')}",
          data:{msg_id:msg_id,msg_status:msg_status},
          type:"post",
          dataType:"json",
          success:function(e){
            if (msg_status==1) {
                obj.children().html("<b>禁止</b>");
                obj.attr("name","0");
            }
            if (msg_status==0) {
                obj.children().html("<b>显示</b>");
                obj.attr("name","1");
            }
          }   
        })
    })
    // $(document),ready(function(){
    //   alert(1)
    // })
</script>
</html>